﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SDWXServer.Models
{
    public class WXUser
    {
        public WXUser()
        {
            OpenId = "";
            SessionKey = "";
            IsDriver = true;
            this.CustomerIDs = new List<Int64>();
            this.SupplierIDs = new List<Int64>();
            this.StockIDs = new List<Int64>();
            DefaultOrganization = "";
            YuYueTime = "30";
            this.TruckTypeId = "555aa682e1c2c7";
            this.TruckTypeName = "普通车";
        }
        public string Id { get; set; }
        public string UnionID { get; set; }
        public string OpenId { get; set; }
        public string SessionKey { get; set; }
        public DateTime DateTime { get; set; }
        public string PhoneNumber { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        public string IDCardNo { get; set; }
        /// <summary>
        /// 车牌号
        /// </summary>
        public string Plate { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 车辆类型
        /// </summary>
        public string TruckTypeId { get; set; }
        /// <summary>
        /// 车辆类型名称
        /// </summary>
        public string TruckTypeName { get; set; }
        /// <summary>
        /// 是否为司机
        /// </summary>
        public bool IsDriver { get; set; }
        /// <summary>
        /// 是否为客户
        /// </summary>
        public bool IsCustomer { get; set; }
        /// <summary>
        /// 是否为供应商
        /// </summary>
        public bool IsSupplier { get; set; }
        /// <summary>
        /// 是否为仓管员
        /// </summary>
        public bool IsStocker { get; set; }
        /// <summary>
        /// 客户内码
        /// </summary>
        public List<Int64> CustomerIDs { get; set; }
        /// <summary>
        /// 供应商内码
        /// </summary>
        public List<Int64> SupplierIDs { get; set; }
        /// <summary>
        /// 仓库内码
        /// </summary>
        public List<Int64> StockIDs { get; set; }
        /// <summary>
        /// ERP用户内码
        /// </summary>
        public Int64 ERPUserId { get; set; }
        /// <summary>
        /// ERP用户名称
        /// </summary>
        public string ERPUserName { get; set; }
        /// <summary>
        /// 员工内码
        /// </summary>
        public Int64 EmpId { get; set; }
        /// <summary>
        /// 员工名称
        /// </summary>
        public string EmpName { get; set; }
        /// <summary>
        /// 公众号OpenId
        /// </summary>
        public string MPOpenId { get; set; }
        /// <summary>
        /// 默认所属组织：交货地点
        /// </summary>
        public string DefaultOrganization { get; set; }
        /// <summary>
        /// 是否为管理员
        /// </summary>
        public bool IsAdministrator { get; set; }
        /// <summary>
        /// 30:每间隔30分钟的预约点;60:整点预约
        /// </summary>
        public string YuYueTime { get; set; }
    }
}